imwayland: Toggle OSK more sparingly
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Feb 2019 22:11:48 +0000 (23:11 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 9 Feb 2019 00:08:35 +0000 (01:08 +0100)
commit37d218b1608b0f0735bd247e2724133898df14f3
treee7c2018cfae77dd0a8330a138146d6c67e0fff0c
parent2eaffe464811a59d407de6f16326005c06ddc68e
imwayland: Toggle OSK more sparingly

Specifically it is avoided to be toggled if:
- Just received focus (in order to preserve OSK state across focus changes)
- Moving cursor around. Still allow some jitter as perfect accuracy is not
  possible.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1277
gtk/gtkimcontextwayland.c